package com.manner.groupon.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 评论表
 * @TableName tb_comment
 */
@TableName(value ="tb_comment")
@Data
public class Comment extends Object implements Serializable {
    /**
     * 评论编号
     */
    @TableId(value = "id")
    private Integer id;

    /**
     * 用户评论编号
     */
    @TableField(value = "user_id")
    private Integer userId;

    /**
     * 商品编号
     */
    @TableField(value = "goods_id")
    private Integer goodsId;

    /**
     * 商家编号
     */
    @TableField(value = "business_id")
    private Integer businessId;

    /**
     * 评论状态

     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}